package org.example.serviceEdu.client;

import org.example.ResultCode.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod1",fallback = VodFileDegradeFeignClient.class)//注解用于指定从哪个服务中调用功能 ,名称与被调用的服务名保持一致
@Component                          //调用失败就会执行实现类中的方法
public interface VodClient {
    @DeleteMapping("/educed/video/removeAlyVideo/{id}")
    public R removeAlyVideo(@PathVariable("id") String id);
    @DeleteMapping("/educed/video/delete-batch")
    public  R deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);

}
